package com.jason.system.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author jie
 * @version 1.0
 * success come from self-discipline
 * @date 2021/4/24 15:24
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Fine {

  /**
   * 奖惩id
   */
  private Integer fId;

  /**
   * 学生ids，以String形式储存，以逗号分割
   */
  private String sIds;

  /**
   * 学生信息
   */
  private List<Student> students;

  /**
   * 奖惩类别，1-奖励，0-罚款
   */
  private Integer category;

  /**
   * 金钱
   */
  private Integer money;

  private String description;

  /**
   * 奖惩时间
   */
  @JSONField(format = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date time;
}
